<template>
	<view>
		<mp-html :content="data"></mp-html>
	</view>
</template>

<script>
	import {
		toastload,
		closeload
	} from "../../utils/common"
	import {
		getAgreement
	} from "@/api/index.js"
	export default {
		data() {
			return {
				data: "<p>隐私协议</p>"
			}
		},
		async onLoad() {
			toastload()
			let res = await getAgreement()
			if(res.data){
				this.data = res.data.privacyContent
			}
			this.$nextTick(() => {
				closeload()
			})
		},
	}
</script>

<style>

</style>